﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace Test1
{
    public class Sprite
    {
        public Sprite()
        {
            PosX = 0;
            PosY = 0;
            Angle = 0;
            Rotation = SpriteEffects.None;
        }

        public Sprite(float posX, float posY, float angle)
        {
            PosX = posX;
            PosY = posY;
            Angle = angle;
            Rotation = SpriteEffects.None;
        }

        private float m_PosX;
        public float PosX 
        {
            get { return m_PosX; }
            set { m_PosX = value; } 
        }

        private double m_Angle;
        public double Angle
        {
            get { return m_Angle; }
            set 
            {
                if (value < Math.PI/2 && value > -Math.PI/2)
                    m_Angle = value; 
            }
        }

        private float m_PosY;
        public float PosY
        {
            get { return m_PosY; }
            set { m_PosY = value; }
        }

        SpriteEffects m_Rotation;
        public SpriteEffects Rotation
        {
            get { return m_Rotation; }
            set { m_Rotation = value; }
        }

        public Texture2D Texture;
    }
}
